package com.extremelylargepackage;

import com.extremelylargepackage.entity.Button;

import android.graphics.Canvas;
import android.view.MotionEvent;

public class GarageEngine extends Engine
{
	private Button _hull;
	private Button _weapons;
	
	public GarageEngine(ThreadCallBack thread) 
	{
		super(thread);
		_hull = new Button(GameResources.getResource("sdag"), 0, 0);
		_weapons = new Button(GameResources.getResource("sdag"), _hull.getLocX() ,_hull.getBottom() + GameResources.SCREEN_HEIGHT * .03f);
		_hull.setText("Hulls");
		_weapons.setText("Weapons");
	}

	@Override
	protected void onInitialize() 
	{
		
	}

	@Override
	protected void updateState(long interval) 
	{
		_hull.updateState(interval);
		_weapons.updateState(interval);
	}

	@Override
	public void draw(Canvas c) 
	{
		_hull.draw(c);
		_weapons.draw(c);
	}

	@Override
	public void onTouch(MotionEvent event) 
	{
		// TODO Auto-generated method stub	
	}

}
